#ifndef __FORMERSEQUENCEEXPRESSIONS__
#define __FORMERSEQUENCEEXPRESSIONS__
#include <stdlib.h>
char * sequence;
int i = 0;

int eval(){
	int v = 0;
	for(;;){
		if(sequence[i] !=' ') break;
		++i;
	}
	if(sequence[i] == '+'){
		++i; return eval() + eval();
	}else if(sequence[i] == '-'){
		++i; return eval() - eval();
	}else if(sequence[i] == '*'){
		++i; return eval() * eval();
	}else if(sequence[i] == '/'){
		++i; return eval() / eval();
	}
	for(;;){
		if(sequence[i] >='0' && sequence[i] <='9')
			v = v * 10 + (sequence[i++]-'0');
		else break;
	}
	return v;
}

void test(){
	sequence = "*-7*/4 6+8 9 5";
	printf("%d", eval());
}
#endif